home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / OPF / Found / FWDebug / Sources / FWTraceT.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-21  |  1.4 KB  |  49 lines  |  [TEXT/MPS ]

  1. #ifdef FW_DEBUG
  2. //========================================================================================
  3. //
  4. //    File:                FWTraceT.cpp
  5. //    Release Version:    $ 1.0d1 $
  6. //
  7. //    Creation Date:        3/28/94
  8. //
  9. //    Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //========================================================================================
  12.  
  13. #ifndef   FWTRACET_H
  14. #include "FWTraceT.h"
  15. #endif
  16.  
  17. #ifndef FWPRIDEB_H
  18. #include "FWPriDeb.h"
  19. #endif
  20.  
  21. //----------------------------------------------------------------------------------------
  22. // FW_CPrivTraceTaskGlobals::Initialize
  23. //----------------------------------------------------------------------------------------
  24.  
  25. void FW_CPrivTraceTaskGlobals::Initialize(FW_SPrivTraceGlobals& globals)
  26. {
  27.     static FW_CDebugConsole sDebugConsole;
  28.     globals.gDebugConsole = &sDebugConsole;
  29.     globals.gTraceEnabled = 0;
  30.     globals.gTraceStream = 0;
  31. //    globals.gTraceDepth = 0;
  32.         // Don't initialize gTraceDepth.  We want the zero value given to it earlier,
  33.         // and it's possible its already been incremented before getting here.
  34.         // See comment in FWTrace.c
  35. #if defined(FW_BUILD_WIN)
  36.     globals.gTraceBuffer = NULL;
  37. #endif
  38. }
  39.  
  40. //----------------------------------------------------------------------------------------
  41. // FW_CPrivTraceTaskGlobals::Terminate
  42. //----------------------------------------------------------------------------------------
  43.  
  44. void FW_CPrivTraceTaskGlobals::Terminate()
  45. {
  46. }
  47.  
  48. #endif
  49.